//
//  MYPublishVideo_Cell.m
//  MiaoYin
//
//  Created by DarkWorld on 2021/1/26.
//  Copyright © 2021 thy. All rights reserved.
//

#import "MYPublishVideo_Cell.h"

@implementation MYPublishVideo_Cell

#pragma mark - Intial Methods
/**
 初始化数据
 */
- (void)initData
{
}

/**
 初始化试图
 */
- (void)initView
{
    //icon
    UIImageView *leftImage = [[UIImageView alloc] init];
//    leftImage.image = UIImageMake(leftIcon);
    [self addSubview:leftImage];
    self.leftImageView = leftImage;
    [leftImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(MY_Padding);
        make.centerY.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(18, 18));
    }];
    
    //右箭头
    UIImage *image = UIImageMake(MYCell_rightArrow_ImageName);
    UIImageView *imageView = [[UIImageView alloc] init];
    imageView.image = image;
    [self addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(image.size);
        make.right.mas_equalTo(-MY_Padding);
        make.centerY.equalTo(self);
        
    }];
    
    //文字
    UILabel *label = [[UILabel alloc] init];
    label.numberOfLines = 1;
//    label.text = title;
    label.font = [UIFont systemFontOfSize:16];
    label.textColor = MY_Text_Color_Theme1;
    [self addSubview:label];
    self.titleLabel = label;

    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(leftImage.mas_right).offset(10);
        make.centerY.mas_equalTo(0);
        make.right.equalTo(imageView.mas_left).offset(-10);
    }];
    
    
    
    
    //横线
    UIView *line = [[UIView alloc] init];
    line.backgroundColor = MYCell_Line_Color;
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(MY_Padding);
        make.right.mas_equalTo(-MY_Padding);
        make.bottom.equalTo(self);
        make.height.mas_equalTo(1);
    }];
    
}



#pragma mark - Network Methods

#pragma mark - Target Methods

#pragma mark - Public Methods

#pragma mark - Private Methods



#pragma mark - Lazy Loads
@end
